global wd = "" // set your working directory here


// ARG

import delimited "${wd}googletrends_Menem.csv", encoding(ISO-8859-1) clear

twoway (line mentions day,  lcolor(blue) ) ///
	, ytitle("Relative Frequency:" "Google Searches for Menem", size(medsmall) ) /// 
	xtitle("") xlab(1 "1 June" 4 "4 June" 7 "7 June" 10 "10 June" 13 "13 June" 16 "16 June" 19 "19 June"  22 "22 June" 25 "25 June" 28 "28 June" 31 "1 July", angle(45) grid ) ///
	xline(13, lpattern(dash) lcolor(red) ) ///
	scheme(lean2) 
graph export "${wd}Figure1.png", as(png) replace


// CR

import delimited "${wd}googletrends_Calderon.csv", encoding(ISO-8859-1) clear
drop if day == ""
split day, parse("/")
destring day1, replace
destring day2, replace
gen year = 2009

gen date = mdy(day1, day2, year)
gen temp = _n

twoway (line calderon temp,  lcolor(blue) ) ///
	, ytitle("Relative Frequency:" "Google Searches for Calderon", size(medsmall) ) /// 
	xtitle("") xlab(1 "30 Sept" 3 "2 Oct" 6 "5 Oct" 9 "8 Oct" 12 "11 Oct" 15 "14 Oct" 18 "17 Oct"  21 "20 Oct", angle(45) grid ) ///
	xline(6, lpattern(dash) lcolor(red) ) ///
	scheme(lean2)
graph export "${wd}Figure5.png", as(png) replace

